package com.xu.cuisine.impl;


import com.xu.cuisine.RedisUtils;

import java.util.concurrent.TimeUnit;

/**
 *
 * @author xudenghui
 * @create 2023-07-24 10:53
 **/
public class CasheServiceImpl implements CacheService {


    private RedisUtils redisUtils = new RedisUtils();

    public String get(String key) {
        return redisUtils.get(key);
    }

    public void set(String key, String value) {
        redisUtils.set(key, value);
    }

    public void set(String key, String value, long timeout, TimeUnit timeUnit) {
        redisUtils.set(key, value, timeout, timeUnit);
    }

    public void del(String key) {
        redisUtils.del(key);
    }

}
